//
//  BKNetWorkTools.m
//  FastBee
//
//  Created by mac on 16/9/9.
//  Copyright © 2016年 xbk. All rights reserved.
//

#import "BKNetWorkTools.h"
#import <AFNetworking.h>

@implementation BKNetWorkTools

static  BKNetWorkTools *_instancetype;
+ (instancetype)shareNetWorkTools{

    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        // http://iosapi.itcast.cn/loveBeen/focus.json.php
        NSURL *baseUrl = [NSURL URLWithString:@"http://iosapi.itcast.cn/loveBeen/"];
        _instancetype = [[self alloc]initWithBaseURL:baseUrl];
        
        _instancetype.requestSerializer = [[AFJSONRequestSerializer alloc]init];
        _instancetype.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];
    });
    return _instancetype;
}

@end
